package com.xmutca.core.common.exception;

/**
 * 业务异常
 * @author: 彭伟煌(pengweihuang@xmutca.com)
 * @create: 2016-07-10 10:26
 */
public class ServiceException extends RuntimeException {

    private int status;

    private String message;

    public ServiceException() {
        super();
    }

    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(int status, String message) {
        super(message);
        this.status = status;
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
